Skip to content

[SE-0101] Migration #125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 30, 2016
Merged

[SE-0101] Migration #125

merged 2 commits into from
Jul 30, 2016

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Jul 29, 2016

Depends on swiftlang/swift#3854

SE-0101 removes sizeof, sizeofValue and related functions from the stdlib.
This PR is migrating them to newly introduced MemoryLayout<T> values.

@@ -151,7 +151,7 @@ public struct DispatchData : RandomAccessCollection {

/// Copy the contents of the data into a buffer.
///
/// This function copies the bytes in `range` from the data into the buffer. If the count of the `range` is greater than `sizeof(DestinationType) * buffer.count` then the first N bytes will be copied into the buffer.
/// This function copies the bytes in `range` from the data into the buffer. If the count of the `range` is greater than `MemoryLayout<DestinationType>.size * buffer.count` then the first N bytes will be copied into the buffer.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.stride please.

@gribozavr
Copy link

One small comment, LGTM otherwise.

@gribozavr gribozavr changed the title [Do not merge yet][SE-0101] Migration [SE-0101] Migration Jul 29, 2016
@DougGregor DougGregor merged commit af84b9c into swiftlang:master Jul 30, 2016
@DougGregor
Copy link
Member

SHOOT! I didn't mean to merge this one.

@DougGregor
Copy link
Member

@rintaro , can you re-open? my apologies for the bogus early-merge.

@rintaro
Copy link
Member Author

rintaro commented Jul 30, 2016

OK, I will reopen this with reflecting @gribozavr's comment. (.size to .stride)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants